From: Pavel Vasin Date: Wed, 13 Jun 2012 16:48:06 +0000 (+0400) Subject: ShellContactSystem: fix GSList leak X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6469 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2b34978993bffa3bbfa00124f76ca8ea36d42c95;p=gnome-shell.git ShellContactSystem: fix GSList leak https://bugzilla.gnome.org/show_bug.cgi?id=678079 --- diff --git a/src/shell-contact-system.c b/src/shell-contact-system.c index 88d329ec3..4f5af7065 100644 --- a/src/shell-contact-system.c +++ b/src/shell-contact-system.c @@ -297,7 +297,7 @@ sort_and_prepare_results (GSList *results) sorted_results = g_slist_prepend (sorted_results, id); } - g_slist_foreach (results, (GFunc) free_result, NULL); + g_slist_free_full (results, (GDestroyNotify) free_result); return sorted_results; }